package com.runner.services;

import com.runner.utility.Locator;

public class GoogleServices {

	public final static int SIGN_OUT = 3;
	public final static int SIGN_IN = 4;

	private boolean mExplicitSignOut = false;
	boolean mInSignInFlow = false; // set to true when you're in the middle of
									// the sign in flow, to know you should not
									// attempt
									// to connect on onStart()
	//private ConnectionResult mConnectionResult;
	private boolean mIntentInProgress = false;
	private boolean mSignedInClicked = false;
	private boolean signedIn = false;
	private boolean updated;

	public GoogleServices() {
	}

	public void switchSignInText(boolean s) {
		if (null != Locator.getGame() && null != Locator.getGame().getMenuScreen()) {
			Locator.getGame().getMenuScreen().switchText(s);
			updated =true;
		} else {
			updated=false;
		}
	}

	public boolean ismExplicitSignOut() {
		return mExplicitSignOut;
	}

	public void setmExplicitSignOut(boolean mExplicitSignOut) {
		this.mExplicitSignOut = mExplicitSignOut;
	}

	public boolean isSignedIn() {
		return signedIn;
	}

	public void setSignedIn(boolean signedIn) {
		this.signedIn = signedIn;
	}

	public boolean ismInSignInFlow() {
		return mInSignInFlow;
	}

	public void setmInSignInFlow(boolean mInSignInFlow) {
		this.mInSignInFlow = mInSignInFlow;
	}

	/*public ConnectionResult getmConnectionResult() {
		return mConnectionResult;
	}

	public void setmConnectionResult(ConnectionResult mConnectionResult) {
		this.mConnectionResult = mConnectionResult;
	}*/

	public boolean ismIntentInProgress() {
		return mIntentInProgress;
	}

	public void setmIntentInProgress(boolean mIntentInProgress) {
		this.mIntentInProgress = mIntentInProgress;
	}

	public boolean ismSignedInClicked() {
		return mSignedInClicked;
	}

	public void setmSignedInClicked(boolean mSignedInClicked) {
		this.mSignedInClicked = mSignedInClicked;
	}

	public boolean isUpdated() {
		return updated;
	}

	public void setUpdated(boolean updated) {
		this.updated = updated;
	}

	public void pushAccomplishments() {
		if(Locator.getAccomplishments() != null){
			Locator.getAccomplishments().pushAccomplishments();
		}
		
	}
	
	

}
